/** @odoo-module **/

import { NavBar } from '@web/webclient/navbar/navbar';
import { patch } from "@web/core/utils/patch";

patch(NavBar.prototype, {
    /**
     * @override
     * 删除右上角的全部功能
     */
    get systrayItems() {
        var items = super.systrayItems;
        var to_hide = ['discuss.CallMenu', 'mail.messaging_menu', 'mail.activity_menu']
        items = items.filter((item) => !to_hide.includes(item.key))
        return items;
    },
});
